package ferus.tigris.easymarks;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.Window;
import android.view.WindowManager.LayoutParams;

public class GameFieldActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().addFlags(LayoutParams.FLAG_FULLSCREEN);
		setContentView(new GameView(this));
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_freeman_field, menu);
		return true;
	}
	
	public void menu() {
		Intent intent = new Intent();
		intent.setClass(this, StartMenuActivity.class);
		startActivity(intent);
		finish();
	}
}
